//
//  APOSaveUtility.m
//  Apallo
//
//  Created by Jason Poh on 26/8/14.
//  Copyright (c) 2014 Apallo. All rights reserved.
//

#import "APOSaveUtility.h"
#import "APOConstants.h"
#import <NSUserDefaults+SecureAdditions.h>

@implementation APOSaveUtility

+(void)saveUserObject: (APOUser*)userObj
{
    [[NSUserDefaults standardUserDefaults] setSecret:API_KEY];
    [[NSUserDefaults standardUserDefaults] setSecretObject:userObj forKey:@"UserObj"];
}


+(APOUser*) loadUserObject
{
    [[NSUserDefaults standardUserDefaults] setSecret:API_KEY];
    return [[NSUserDefaults standardUserDefaults] secretObjectForKey:@"UserObj"];
}


@end
